project('a05_widgetDemo'
            , 'c'
            , version:'1.0.0'
            , default_options: ['buildtype=debugoptimized', 'warning_level=1']
            , meson_version: '> 0.48.0'
            , license: 'LGPLv2.1+')

gnome = import('gnome')

gtk_debug_cflags=['-DG_ENABLE_DEBUG', '-DG_ENABLE_CONSISTENCY_CHECKS']

add_project_arguments(gtk_debug_cflags, language:'c')

glibDep = dependency('glib-2.0')
gtkDep = dependency('gtk+-3.0')

resources = gnome.compile_resources(
                'resources'
                , 'main.gresource.xml'
                , source_dir: '.'
                , c_name: 'resources'
                )

schemas = gnome.compile_schemas()

a05_widgetDemo = executable(
                'a05_widgetDemo.exe'
                , 'main.c'
                , 'button_box.c'
                , 'label.c'
                , 'image.c'
                , 'spinner.c'
                , 'infobar.c'
                , 'button.c'
                , 'progressbar.c'
                , 'levelbar.c'
                , 'statusbar.c'
                , 'entry.c'
                , 'scale.c'
                , 'scrollbar.c'
                , 'spinbutton.c'
                , 'calendar.c'
                , 'dialogs.c'
                , 'combobox.c'
                , 'treeview.c'
                , 'popover.c'
                
                , resources
                , schemas
                , dependencies: [glibDep, gtkDep]
                )